package com.yyjj.yyjj.order.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yyjj.yyjj.model.order.OrderInfo;
import com.yyjj.yyjj.vo.order.OrderConfirmVo;
import com.yyjj.yyjj.vo.order.OrderSubmitVo;
import com.yyjj.yyjj.vo.order.OrderUserQueryVo;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author lcp
 * @since 2024-05-04
 */
public interface IOrderInfoService extends IService<OrderInfo> {

    //确认订单
    OrderConfirmVo confirmOrder();
    //生成订单
    Long submitOrder(OrderSubmitVo orderParamVo);
    //订单详情
    OrderInfo getOrderInfoById(Long orderId);

    OrderInfo getOrderInfoByOrderNo(String orderNo);

    void orderPay(String orderNo);

    //用户订单信息
    IPage<OrderInfo> findUserOrderPage(Page<OrderInfo> pageParam, OrderUserQueryVo orderUserQueryVo);

}
